package com.itheima.web.Newuserregistration;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author 黄汉江
 * @date 2023/11/4 0:22
 * @description: springboot
 */
@Mapper
public interface UserAuthorityMapper {
    // 注册新用户权限
    int insertUser(UserAuthorityM userAuthorityM);

    // 查看用户权限
    int getAuthoritiesByUserId(int userId);

    // 删除用户信息权限
//    @Delete("delete from t_user_authority where user_id = #{userId}")
    int deleteUserAuthority(int userId);

    //根据权限id查找用户权限
    String getAuthorityById(int authorityId);
}
